package Combine;

public class Leaf extends Component {
    @Override
    public void add(Component component) {

    }

    @Override
    public void remove(Component component) {

    }

    @Override
    public Component getChild(int index) {
        return null;
    }

    @Override
    public void display() {
        System.out.println("I am a leaf");
    }
}
